package com.daoyintech.repository;

import com.daoyintech.entity.bean.RedEnvelope;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * Created by xuzhaolin on 15/12/29.
 */
public interface RedEnvelopeRepository extends CrudRepository<RedEnvelope,Long>{

    RedEnvelope findByOrderNumber(String orderNumber);
    List<RedEnvelope> findByIsUsed(int is_used);
}
